FROM docker.jianmuhub.com/296969/node_js:18.20.5

RUN apt update && \
        apt-get install -y  ca-certificates jq python3 python3-dev && \
        ln -s /usr/bin/python3 /usr/bin/python

RUN yarn config set registry https://registry.npmmirror.com/ && yarn global add pnpm@9.12.3
RUN pnpm config set registry https://registry.npmmirror.com/

ADD script/* /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/nodejs_build"]
